<template>
	<view class='content'>
		<customNavbar :title="$t('sidebar.CrossChainBridge')" @toTime="toTime" />
		<view class="list">
			<view class="list_item">
				<view class="item_name">{{$t('CrosChainBri.from')}}</view>
				<view class="item_input">
					<view class="item_input_left" @click="show = true">
						<img src="../../static/img/USDT.png" alt="" style="width: 48rpx;height: 48rpx">
						<view>USDT</view>
						<img src="../../static/img/xia.png" alt="" style="width: 16rpx;height: 16rpx;">
					</view>
					<u--input style="border: none;" :placeholder="$t('CrosChainBri.minimum')+'10'"></u--input>
					<view class="big">{{$t('CrosChainBri.maximum')}}</view>
				</view>
				<view class="expense">
					<view class="">{{$t('CrosChainBri.AvailBalance')}}：0</view>
					<view class="">{{$t('CrosChainBri.commission')}}：1~15U+2.5%</view>
				</view>
			</view>
			<view class="up_centerimg">
				<img src="../../static/img/center.png" alt="" style="width: 90rpx;height: 90rpx;">
			</view>
			<view class="list_item">
				<view class="item_name">{{$t('CrosChainBri.to')}}</view>
				<u-radio-group v-model="radiovalue1" activeColor="#ffb105">
					<u-radio v-for="(item, index) in radiolist" :key="index" :label="item.name" :name="item.name">
					</u-radio>
				</u-radio-group>
				<view class="item_input" style="margin-top: 50rpx;">
					<view class="item_input_left">
						<img src="../../static/img/USDT.png" alt="" style="width: 48rpx;height: 48rpx">
						<view>USDT</view>
						<img src="../../static/img/xia.png" alt="" style="width: 16rpx;height: 16rpx;">
					</view>
					<u--input style="border: none;" :placeholder="$t('CrosChainBri.automatic')"></u--input>
				</view>
				<u--input :placeholder="$t('CrosChainBri.address')"></u--input>
			</view>
			<view class="txBtn" @click="show2 = true">{{$t('CrosChainBri.exchange')}}</view>
		</view>
		<view class="list">
			<view class="down_title">{{$t('CrosChainBri.record')}}</view>
			<view class="down_none">
				<img src="../../static/img/none.png" alt="">
				<view class="">{{$t('CrosChainBri.NoDataYet')}}</view>
			</view>
		</view>
		<view class="mask" v-if='show2'>
			<view
				style="overflow: hidden;width: 60%;;background-color: #ecf0f5;border-radius: 20rpx;padding:50rpx 100rpx">
				<view class="mask_title">{{$t('wallet.enterPassword')}}</view>
				<u--input class="uInput" :placeholder="$t('wallet.Please') +  $t('wallet.enterPassword')"
					border="surround" v-model="value"></u--input>
				<view class="mask_btn">
					<view @click='show2 = false'>cancel</view>
					<view @click='show2 = false'>OK</view>
				</view>
			</view>
		</view>
		<u-popup :show="show" @close="show = false">
			<view style="height: 70vh;">
				<view class="top">
					<view class="top_title">從</view>
					<view class="top_name">
						<img src="../../static/img/USDT.png" alt="">
						<view class="">USDT</view>
					</view>
				</view>
				<view class="catary">
					<view class="catItem" @click="show = false">
						<img src="../../static/img/USDT.png" alt="">
						<view class="catItem_right">
							<view>Tether USD</view>
							<view>USDT</view>
						</view>
					</view>
					<view class="catItem" @click="show = false">
						<img src="../../static/img/USDT.png" alt="">
						<view class="catItem_right">
							<view>Tether USD</view>
							<view>USDT</view>
						</view>
					</view>
					<view class="catItem" @click="show = false">
						<img src="../../static/img/USDT.png" alt="">
						<view class="catItem_right">
							<view>Tether USD</view>
							<view>USDT</view>
						</view>
					</view>
				</view>
			</view>
		</u-popup>
		<u-popup :show="show3" @close="close3" mode="center" :zIndex="'997'">
			<view class="popupcon">
				<view class="title">{{$t('first.title26')}}</view>
				<image class="icon" src="../../static/tian/laba.png" mode=""></image>
				<view class="title1">{{$t('first.title97')}}</view>
			</view>
		</u-popup>
	</view>
</template>

<script>
	import customNavbar from './navigationBar.vue'
	export default {
		components: {
			customNavbar
		},
		data() {
			return {
				show: false,
				show2: false,
				show3: true,
				radiolist: [{
						name: 'BSC',
						disabled: false
					},
					{
						name: 'ERC20',
						disabled: false
					},
				],
				radiovalue1: 'BSC',
			}
		}
	}
</script>
<style>
	.header {
		width: 100%;
		height: 104rpx;
		padding: 20rpx;
		position: fixed;
		background-color: #ecf0f5;
		display: flex;
		top: 0;
		left: 0;
		align-items: center;
		justify-content: space-between;
		z-index: 999;
	}

	.back {
		width: 48rpx;
		height: 48rpx;
	}

	.header .text {
		font-size: 36rpx;
		font-family: PingFangSC-Medium, PingFang SC;
		font-weight: 600;
		color: #222;
	}
</style>
<style lang="scss">
	page {
		background-color: #ecf0f5;
	}

	.content {
		overflow: hidden;
		position: relative;
	}

	.list {
		width: 90%;
		margin: 50rpx auto;
		background: #fff;
		box-shadow: 0 26rpx 60rpx 0 rgba(123, 131, 139, .22);
		border-radius: 40rpx;
		padding: 50rpx;
		box-sizing: border-box;
		overflow: hidden;
	}

	.item_name {
		font-size: 32rpx;
		font-weight: 600;
		color: #a6a6a6;
	}

	.item_input {
		width: 100%;
		height: 82rpx;
		border: 1rpx solid #e5e5e5;
		border-radius: 20rpx;
		margin: 20rpx 0;
		display: flex;
		align-items: center;
	}

	.u-input {
		border-radius: 20rpx;
	}

	.item_input_left {
		width: 30%;
		height: 100%;
		display: flex;
		align-items: center;
		justify-content: space-around;
		margin-left: 20rpx;
		font-size: 28rpx;
		font-weight: 700;
		color: #222;
	}


	.big {
		font-size: 30rpx;
		font-family: PingFangSC-Semibold, PingFang SC;
		font-weight: 600;
		color: #ffb40f;
		margin-right: 10rpx;
	}

	.txBtn {
		width: 90%;
		height: 96rpx;
		margin: 50rpx auto;
		background: #ffb105;
		border-radius: 50rpx;
		font-size: 36rpx;
		font-weight: 600;
		color: #000;
		text-align: center;
		line-height: 96rpx;
	}

	.up_centerimg {
		margin: 30rpx 0;
		width: 100%;
		text-align: center;
	}

	.expense {
		display: flex;
		justify-content: space-between;
		font-size: 28rpx;
		color: #a6a6a6;

	}


	.u-radio-group {
		display: flex;
		flex-wrap: wrap;
		margin-top: 20rpx;
		font-size: 40rpx;
		font-weight: 600;
		color: #222;
	}

	.u-radio {
		width: 25%;
		margin-right: 10rpx;
	}

	.down_title {
		font-size: 38rpx;
		font-weight: 600;
		color: #222;
	}

	.down_none {
		display: flex;
		flex-direction: column;
		align-items: center;
		width: 560rpx;
		height: 580rpx;
		margin-top: 10rpx;
	}

	.down_none img {
		width: 402rpx;
		height: 352rpx;
	}

	.down_none view {
		font-size: 25rpx;
		color: #9394bc
	}



	.mask {
		width: 100%;
		height: 100vh;
		background-color: rgba(0, 0, 0, 0.5);
		position: fixed;
		top: 0;
		left: 0;
		display: flex;
		align-items: center;
		justify-content: center;

		.mask_title {
			width: 100%;
			text-align: center;
			margin-bottom: 40rpx;
		}

		.mask_btn {
			width: 100%;
			margin-top: 30rpx;
			height: 90rpx;
			display: flex;
			align-items: center;
			justify-content: space-between;

			view {
				flex: 1;
				height: 90rpx;
				text-align: center;
				line-height: 90rpx;
				margin: 0 10rpx;
				border-radius: 20rpx;
			}

			view:nth-child(1) {
				background-color: #fff;
				color: #7c7c7c;
			}

			view:nth-child(2) {
				background-color: #222222;
				color: #fff;
			}
		}
	}

	.top {
		width: 90%;
		height: 150rpx;
		border: 10rpx solid #ecf0f5;
		border-radius: 150rpx;
		margin: 30rpx auto;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		font-size: 32rpx;
		color: #696969;
		overflow: hidden;
	}


	.top_name {
		margin-top: 5rpx;
		display: flex;
		align-items: center;
	}

	.top_name img {
		width: 48rpx;
		height: 48rpx;
		margin-right: 10rpx
	}

	.catary {
		width: 90%;
		margin: 20rpx auto;
	}

	.catItem {
		display: flex;
		margin-bottom: 20rpx;
	}

	.catItem img {
		width: 120rpx;
		height: 120rpx;
		margin-right: 50rpx
	}

	.catItem_right {
		font-size: 30rpx;
	}

	.catItem_right view:nth-child(1) {
		font-weight: 600;
		color: #222;
		margin-bottom: 8rpx
	}

	.catItem_right view:nth-child(2) {
		font-size: 28rpx;
		font-weight: 600;
		color: #adadad
	}
	
	
	.popupcon{
		width: 490rpx;
		height: 458rpx;
		background: #fff;
		border-radius: 45rpx;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: space-around;
	}
	.popupcon .title{
		font-size: 32rpx;
		font-family: PingFangSC-Medium,PingFang SC;
		font-weight: 600;
		color: #222;
	}
	.popupcon .icon{
		width: 128rpx;
		height: 128rpx;
		display: flex;
		justify-content: center;
		align-items: center;
	}
	/deep/ .u-popup__content{
		background-color: transparent;
	}
	/deep/ .u-fade-enter-active{
		z-index: 996!important;
	}
	.popupcon .title1{
		font-size: 28rpx;
		font-family: PingFangSC-Regular,PingFang SC;
		font-weight: 400;
		color: #969ca4;
	}
</style>